﻿namespace DbWorker.DataModels
{
    public enum ReplaceFile
    {
        Unknown = -1,
        Rename = 0,
        Replace = 1,
        Skip = 2
    }

    public enum RuleAction
    {
        Unknown = -1,
        None = 0,
        Send = 1,
        Receive = 2
    }

    public class RuleDm
    {
        public long Id = -1;

        public long ParentId = -1;

        public string Title;

        public string DirectoryPath;

        public RuleAction Action;

        public string Addresses;

        public string FileTypes;

        public ReplaceFile Replace;

        public string Subject;

        public string MessageText;

        public bool SaveMessage;

        public bool MessageFromFile;
    }
}
